package com.patents.service;

import com.patents.dao.UsersMapper;
import com.patents.pojo.Users;

import java.util.List;

public class UsersServiceImpl implements UsersService {
    private UsersMapper usersMapper;
    public void setUsersMapper(UsersMapper usersMapper) {
        this.usersMapper = usersMapper;
    }


    @Override
    public int addUsers(Users users) {
        return usersMapper.addUsers(users);
    }

    @Override
    public int deleteUsersById(int id) {
        return usersMapper.deleteUsersById(id);
    }

    @Override
    public int updateUsers(Users users) {
        return usersMapper.updateUsers(users);
    }

    @Override
    public Users queryUsersById(int id) {
        return usersMapper.queryUsersById(id);
    }

    @Override
    public List<Users> queryAllUsers() {
        return usersMapper.queryAllUsers();
    }


}
